import {
  Button,
  Message,
  Input,
  Form,
  FormItem,
  Checkbox,
  Icon,
  Container,
  Header,
  Aside,
  Main,
  Footer,
  Menu,
  Submenu,
  MenuItem,
  MenuItemGroup,
  Radio,
  RadioGroup,
  RadioButton,
  Row,
  Col,
  Tabs,
  TabPane,
  Select,
  Option,
  DatePicker,
  TimePicker,
  Switch,
  CheckboxGroup,
  Breadcrumb,
  BreadcrumbItem,
  Table,
  TableColumn,
  PageHeader,
  Pagination,
  
} from 'element-ui';
//按需引入Elementui组件
import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue'

// 引入全局配置，改变尺寸，使elementUI组件初始化默认值2000
Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 };

// 全局使用提示框 默认错误接口异常
Vue.prototype.$message = (message="接口异常",type="error") => Message({
  message,
  type
})



export default ()=>{
  Vue.use(Button)
  Vue.use(Input)
  Vue.use(Form)
  Vue.use(Form);
  Vue.use(FormItem);
  Vue.use(Checkbox);
  Vue.use(Icon)
  Vue.use(Container)
  Vue.use(Header);
  Vue.use(Aside);
  Vue.use(Main);
  Vue.use(Footer);
  Vue.use(Menu);
  Vue.use(Submenu);
  Vue.use(MenuItem);
  Vue.use(MenuItemGroup);
  Vue.use(Radio);
  Vue.use(RadioGroup);
  Vue.use(RadioButton);
  Vue.use(Row);
  Vue.use(Col);
  Vue.use(Tabs);
  Vue.use(TabPane);
  Vue.use(Select);
  Vue.use(Option);
  Vue.use(DatePicker);
  Vue.use(TimePicker);
  Vue.use(Switch);
  Vue.use(CheckboxGroup);
  Vue.use(Breadcrumb);
  Vue.use(BreadcrumbItem);
  Vue.use(Table);
  Vue.use(TableColumn);
  Vue.use(PageHeader);
  Vue.use(Pagination);
  

}